import serial

ser = serial.Serial('/dev/ttyUSB1', 115200, timeout=1)
ser.write('ATZ\r')
ser.write('AT+CMGF=1\r')
ser.write('AT+CMGS=”+353868276XXX”\r')
ser.write('SMS over 3G but from Python\n')
ser.write(chr(26))
line = ser.readline()   #read a ‘\n’ terminated line
print line
ser.close()
